<?php

namespace app\model;

use app\BaseModel;
use think\model\relation\BelongsTo;

/**
 * 干预预检员
 */
class InterfereAdminModel extends BaseModel
{
    protected $name = 'interfere_admin';

    /**
     * 关联用户
     * @return BelongsTo
     */
    public function user(): BelongsTo
    {
        return $this->belongsTo('UserModel','uid')->bind([
            'user_name'=>'name',
            'user_sex' => 'sex',
            'username',
            'role_mode'
        ]);
    }
}